home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / aal / stream.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  912b  |  35 lines

  1. /* Copyright (C) 2001, 2002, 2003 by Hans Reiser, licensing governed by
  2.    libaal/COPYING.
  3.    
  4.    stream.h -- simple stream implementation. */  
  5.  
  6. #ifndef AAL_STREAM_H
  7. #define AAL_STREAM_H
  8.  
  9. #ifndef ENABLE_MINIMAL
  10. #include <aal/types.h>
  11.  
  12. extern int aal_stream_eof(aal_stream_t *stream);
  13. extern void aal_stream_fini(aal_stream_t *stream);
  14. extern void aal_stream_close(aal_stream_t *stream);
  15. extern void aal_stream_reset(aal_stream_t *stream);
  16.  
  17. extern aal_stream_t *aal_stream_create(void *entity,
  18.                        aal_proto_t *proto);
  19.  
  20. extern int32_t aal_stream_read(aal_stream_t *stream,
  21.                    void *buff, uint32_t n);
  22.  
  23. extern int32_t aal_stream_write(aal_stream_t *stream,
  24.                 void *buff, uint32_t n);
  25.  
  26. extern int32_t aal_stream_format(aal_stream_t *stream,
  27.                  const char *format, ...);
  28. extern void aal_stream_init(aal_stream_t *stream,
  29.                 void *entity,
  30.                 aal_proto_t *proto);
  31.                        
  32. #endif
  33.  
  34. #endif
  35.